using System;
using System.Collections.Generic; 
using System.Linq;  
using System.Text;  
using System.Data.Linq.Mapping;
using System.ComponentModel;
namespace MRSite.Entity  
{  
	 [Table(Name = "message")] 
	 public class Message : Entity
	{ 
		/// <summary>
		///自增ID
		/// </summary>
		[Column(Name = "id", IsPrimaryKey = true, CanBeNull = false, IsVersion = true)]
		public override int id{ get; set; } 

		/// <summary>
		///短信息类型0系统消息1收件箱2发件箱
		/// </summary>
		[Column(Name = "type")]
		public int type{ get; set; }

        /// <summary>
        ///发件人
        /// </summary>
        [Column(Name = "post_user_id")]
        public int post_user_id { get; set; }

		/// <summary>
		///发件人
		/// </summary>
		[Column(Name = "post_user_name")]
		public String post_user_name{ get; set; }

        /// <summary>
        ///收件人
        /// </summary>
        [Column(Name = "accept_user_id")]
        public int accept_user_id { get; set; } 

		/// <summary>
		///收件人
		/// </summary>
		[Column(Name = "accept_user_name")]
		public String accept_user_name{ get; set; } 

		/// <summary>
		///是否查看0未阅1已阅
		/// </summary>
        [Column(Name = "is_read"), DefaultValue(0)]
		public int is_read{ get; set; } 

		/// <summary>
		///短信息标题
		/// </summary>
		[Column(Name = "title")]
		public String title{ get; set; } 

		/// <summary>
		///短信息内容
		/// </summary>
		[Column(Name = "content")]
		public String content{ get; set; } 

		/// <summary>
		///发送时间
		/// </summary>
        [Column(Name = "post_time", IsDbGenerated = true)]
		public DateTime post_time{ get; set; } 

		/// <summary>
		///阅读时间
		/// </summary>
		[Column(Name = "read_time")]
		public DateTime? read_time{ get; set; } 

	 } 
}    

